package com.choosefine.it.basedata.model;

import springfox.documentation.annotations.ApiIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import springfox.documentation.annotations.ApiIgnore;

import java.io.Serializable;

import com.choosefine.it.base.Base;
import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 工程类型模型
 * @author guwenwei
 * @date  2016/11/25
 */
@ApiModel(value = "工程类型", description = "工程类型数据模型")
public class ProjectType extends Base implements Serializable {
	
	@ApiModelProperty(value = "主键ID", required = true)
	private Integer id;
    /**
     * 工程类型
     */
	@ApiModelProperty(value = "工程类型", required = true)
	private String projectType;

	private static final long serialVersionUID = 1L;
	
	@JsonIgnore
	private Integer sortNum;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProjectType() {
		return projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType == null ? null : projectType.trim();
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		ProjectType other = (ProjectType) that;
		return (this.getId() == null ? other.getId() == null : this.getId()
				.equals(other.getId()))
				&& (this.getProjectType() == null ? other.getProjectType() == null
						: this.getProjectType().equals(other.getProjectType()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime
				* result
				+ ((getProjectType() == null) ? 0 : getProjectType().hashCode());
		return result;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}
	
}
